read command line arguments